package city.spring.modules.bed.service;

import city.spring.modules.bed.dto.BedBuildingDTO;
import city.spring.modules.bed.entity.BedBuildingEntity;
import city.spring.modules.bed.repository.BedBuildingRepository;
import city.spring.service.BaseService;

import java.util.List;

/**
 * Service：楼栋信息
 *
 * @author 侯坤林
 * @date 2020-04-26 12:01:12
 */
public interface BedBuildingService extends BaseService<BedBuildingRepository, BedBuildingEntity> {
    String CACHE_NAME = "bed_building";

    /**
     * 业务处理：保存一个 <strong>楼栋信息</strong>
     *
     * @param entity 楼栋信息
     */
    void saveBedBuilding(BedBuildingDTO entity);

    /**
     * 业务处理：修改一个 <strong>楼栋信息</strong>
     *
     * @param entity 楼栋信息
     */
    void updateBedBuilding(BedBuildingEntity entity);

    /**
     * 业务处理：删除一个 <strong>楼栋信息</strong>
     *
     * @param primaryKey 主键ID
     */
    void deleteBedBuilding(String primaryKey);

    /**
     * 业务处理：删除多个 <strong>楼栋信息</strong>
     *
     * @param primaryKeys 主键ID列表
     */
    void deleteBedBuilding(List<String> primaryKeys);
}